<template>
  <div class="visitor-page">
    <h1>{{ userBaseInfo.username}}，{{msg}}</h1>
    <h2>仅登录的用户可见</h2>
    <router-link to="/home">返回首页</router-link>
  </div>
</template>

<script>
import {mapGetters} from "vuex";

export default {
  name: "VisitorPage",
  props:['msg'],
  computed:{
    ...mapGetters(['userBaseInfo'])
  }
}
</script>

<style scoped>
.visitor-page{
  padding-top: 60px;
}
</style>
